package web.controller;

import app.entity.AdminEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AdminController {
    /**
     * 如何使用程序调用这个接口
     */
    @PostMapping("/admins")
    public AdminEntity getAdmin(){
        AdminEntity adminEntity=new AdminEntity();
        adminEntity.setPassword("123");
        adminEntity.setAdmin("123");
        return adminEntity;
    }
}
